import request from '@/utils/request'

// 查询血片编号列表
export function listBpn(query) {
  return request({
    url: '/his/bpn/list',
    method: 'get',
    params: query
  })
}

// 查询血片编号列表-不分页
export function listBpns(query) {
  return request({
    url: '/his/bpn/lists',
    method: 'get',
    params: query
  })
}

// 查询血片编号详细
export function getBpn(id) {
  return request({
    url: '/his/bpn/' + id,
    method: 'get'
  })
}

// 新增血片编号
export function addBpn(data) {
  return request({
    url: '/his/bpn',
    method: 'post',
    data: data
  })
}

// 修改血片编号
export function updateBpn(data) {
  return request({
    url: '/his/bpn',
    method: 'put',
    data: data
  })
}

// 删除血片编号
export function delBpn(id) {
  return request({
    url: '/his/bpn/' + id,
    method: 'delete'
  })
}
